From: sunflowerskater Date: Fri, 13 Jan 2023 16:09:25 +0000 (-0300) Subject: quickSettings: Add a "Power Settings" entry to the Power Profiles submenu X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~405^2^2~174 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=37c0906755995b8d937031b576a593e8e95e4bb3;p=gnome-shell.git quickSettings: Add a "Power Settings" entry to the Power Profiles submenu This change adds the shortcut so it can be accessible by devices without a battery and to keep consistency with other submenus like the Wi-Fi submenu and the upcoming Bluetooth submenu (Teams/Design/os-mockups#178). Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6111 Part of Part-of: --- diff --git a/js/ui/status/powerProfiles.js b/js/ui/status/powerProfiles.js index e15208d8f..05d66824f 100644 --- a/js/ui/status/powerProfiles.js +++ b/js/ui/status/powerProfiles.js @@ -68,6 +68,8 @@ class PowerProfilesToggle extends QuickMenuToggle { this._profileSection = new PopupMenu.PopupMenuSection(); this.menu.addMenuItem(this._profileSection); this.menu.setHeader('power-profile-balanced-symbolic', _('Power Profiles')); + this.menu.addSettingsAction(_('Power Settings'), + 'gnome-power-panel.desktop'); this._sync(); }